package com.bless.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bless.system.mapper.SysBlessMapper;
import com.bless.system.domain.SysBless;
import com.bless.system.service.ISysBlessService;

/**
 * 祝福语Service业务层处理
 * 
 * @author bless
 * @date 2023-06-16
 */
@Service
public class SysBlessServiceImpl implements ISysBlessService 
{
    @Autowired
    private SysBlessMapper sysBlessMapper;

    /**
     * 查询祝福语
     * 
     * @param id 祝福语主键
     * @return 祝福语
     */
    @Override
    public SysBless selectSysBlessById(Long id)
    {
        return sysBlessMapper.selectSysBlessById(id);
    }

    /**
     * 查询祝福语列表
     * 
     * @param sysBless 祝福语
     * @return 祝福语
     */
    @Override
    public List<SysBless> selectSysBlessList(SysBless sysBless)
    {
        return sysBlessMapper.selectSysBlessList(sysBless);
    }

    /**
     * 新增祝福语
     * 
     * @param sysBless 祝福语
     * @return 结果
     */
    @Override
    public int insertSysBless(SysBless sysBless)
    {
        return sysBlessMapper.insertSysBless(sysBless);
    }

    /**
     * 修改祝福语
     * 
     * @param sysBless 祝福语
     * @return 结果
     */
    @Override
    public int updateSysBless(SysBless sysBless)
    {
        return sysBlessMapper.updateSysBless(sysBless);
    }

    /**
     * 批量删除祝福语
     * 
     * @param ids 需要删除的祝福语主键
     * @return 结果
     */
    @Override
    public int deleteSysBlessByIds(Long[] ids)
    {
        return sysBlessMapper.deleteSysBlessByIds(ids);
    }

    /**
     * 删除祝福语信息
     * 
     * @param id 祝福语主键
     * @return 结果
     */
    @Override
    public int deleteSysBlessById(Long id)
    {
        return sysBlessMapper.deleteSysBlessById(id);
    }
}
